package tpc2;

public class Vote
{
    public Response vote;
    public int workerId;       
    public enum Response { Yes, No };
    
    public Vote(String workerId, String vote) {
        this.vote = vote.equals("Yes") ? Response.Yes : Response.No;
        this.workerId = Integer.parseInt(workerId);
    }
}